package com.magic.ch03_数学与简单DP.蚂蚁感冒;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        int n = Integer.parseInt(br.readLine());
        int[] mos = new int[n];
        String[] read = br.readLine().split(" ");
        for (int i = 0; i < n; i++) {
            mos[i] = Integer.parseInt(read[i]);
        }
        int left = 0, right = 0;
        for (int i = 1; i < n; i++) {
            if (Math.abs(mos[i]) < Math.abs(mos[0]) && mos[i] > 0) left++;
            if (Math.abs(mos[i]) > Math.abs(mos[0]) && mos[i] < 0) right++;
        }
        if (mos[0] > 0 && right == 0 || mos[0] < 0 && left == 0) {
            pw.println(1);
        } else {
            pw.println(left + right + 1);
        }
        br.close();
        pw.flush();
        pw.close();
    }
}
